﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    x:Class="CeBIT2010.OnAirControl"
    mc:Ignorable="d"
    d:DesignWidth="133"
    d:DesignHeight="81">
    <UserControl.Resources>
        <Storyboard
            x:Name="OnAirStory"
            RepeatBehavior="Forever"
            AutoReverse="True">
            <ColorAnimationUsingKeyFrames
                BeginTime="00:00:00"
                Storyboard.TargetName="rectangle"
                Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                <SplineColorKeyFrame
                    KeyTime="00:00:00"
                    Value="#FFFFFFFF"
                    KeySpline="0,0,0.5,1" />
                <SplineColorKeyFrame
                    KeyTime="00:00:01"
                    Value="#FFFF0000"
                    KeySpline="0.5,0,0.5,1" />
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <Grid
        x:Name="LayoutRoot"
        Background="{x:Null}">
        <Grid.RowDefinitions>
            <RowDefinition
                Height="0.5*" />
            <RowDefinition
                Height="0.5*" />
        </Grid.RowDefinitions>
        <Rectangle
            RadiusX="2.604"
            RadiusY="2.604"
            Stroke="#FF9F0202"
            x:Name="rectangle"
            Grid.RowSpan="2">
            <Rectangle.Fill>
                <RadialGradientBrush>
                    <GradientStop
                        Color="#FFFFE0E0" />
                    <GradientStop
                        Color="#FFFF0000"
                        Offset="1" />
                </RadialGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <TextBlock
            HorizontalAlignment="Center"
            Text="ON"
            TextWrapping="Wrap"
            Margin="0,0,0,-3"
            Foreground="#FFFFFFFF"
            FontSize="18"
            FontFamily="Portable User Interface"
            FontWeight="Bold"
            d:LayoutOverrides="Height"
            VerticalAlignment="Bottom" />
        <TextBlock
            HorizontalAlignment="Center"
            Text="AIR"
            TextWrapping="Wrap"
            Margin="0,-4,0,3"
            Foreground="#FFFFFFFF"
            FontSize="18"
            FontFamily="Portable User Interface"
            FontWeight="Bold"
            Grid.Row="1"
            d:LayoutOverrides="Height"
            VerticalAlignment="Top" />
        <Path
            Margin="0,1,0,-9"
            Stretch="Fill"
            Stroke="{x:Null}"
            Data="M3.1040001,0.5 L36.896004,0.5 C38.334152,0.5 39.5,1.6658506 39.5,3.1040001 L39.5,22.93103 L35.680557,23.967594 C31.014662,24.954346 25.884775,25.5 20.499998,25.5 C15.115221,25.5 9.9853344,24.954346 5.3194389,23.967594 L0.5,22.659641 L0.5,3.1040001 C0.5,1.6658506 1.6658497,0.5 3.1040001,0.5 z"
            UseLayoutRounding="False">
            <Path.Fill>
                <LinearGradientBrush
                    EndPoint="0.5,1"
                    StartPoint="0.5,0">
                    <GradientStop
                        Color="#66FFFFFF" />
                    <GradientStop
                        Color="#31FFFFFF"
                        Offset="1" />
                </LinearGradientBrush>
            </Path.Fill>
        </Path>
    </Grid>
</UserControl>
